package com.ciko.code.http.Req;

import com.ciko.code.constant.Api;
import com.ciko.code.http.BaseRequest;
import com.mywork.WorkUIKit;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * Created by sihailin on 15/12/23.
 */
public class submitMyPlanReq extends BaseRequest {

    public submitMyPlanReq(int planType, String acceptUser,String completeWork,String workSummary,String workPlan,String help,String remarks,String enclosure,String address){

        init();

        put("planType", String.valueOf(planType));
        put("acceptUser", acceptUser);
        put("createUser", WorkUIKit.getUser().getUserNo());
        put("completeWork", completeWork);
        put("workSummary", workSummary);
        put("workPlan", workPlan);
        put("help", help);
        put("remarks", remarks);
        put("enclosure", enclosure);
        put("address", address);

        putCid(String.valueOf(planType) + acceptUser+ WorkUIKit.getUser().getUserNo() + "");
//        put("cid", cid(App.getUser().getAccount() + getAccountType() + getClientType() + getTimeStamp() + getEnterpriseId() + App.getUser().getUserNo() + paramString.toString()));
    }

    @Override
    public String getUrl() {
        return Api.submitMyPlan;
    }

    @Override
    public Class<?> getResponseClazz() {
        return SubmitMyPlanRes.class;
    }
}
